<div class="panel panel-default mt20">
  <div class="panel-body">
    <div class="col-sm-12">
      <div class="row">
        <div class="col-sm-3">
          <!-- <input type="text" placeholder="设备名称" class="form-control" ng-model="searchform.eq_name" ng-keyup="myKeyup($event)"> -->
        </div>
        <div class="col-sm-1">
          <!-- <button class="btn btn-block btn-info" ng-click="load()">检索</button> -->
        </div>
        <div class="col-sm-2 pull-right">
          <button class="btn btn-block btn-success" ng-click="add()">添加企业</button>
        </div>
        <div class="col-sm-2 pull-right">
          <button class="btn btn-block btn-info" ng-click="ins()">批量添加微信号</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="panel panel-default mt20">
  <div class="panel-body">
    <table class="table table-condensed table-hover table-bordered">
      <thead>
        <tr>
            <th class="col-md-1 text-center">区县编号</th>
          <th class="col-md-2 text-center">区县名称</th>
          <th class="col-md-1 text-center">企业编号</th>
          <th class="col-md-2 text-center">企业名称</th>
          <th class="col-md-1 text-center">创建时间</th>
          <th class="col-md-1 text-center">创建者</th>
          <th class="col-md-1 text-center">是否启用</th>
          <th class="col-md-3 text-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in objs">
          <td class="text-center">{{obj.area_code}}</td>
          <td class="text-center">{{obj.area_name}}</td>
          <td class="text-center">{{obj.company_id}}</td>
          <td class="text-center">{{obj.company_name}}</td>
          <td class="text-center">{{obj.create_time}}</td>
          <td class="text-center">{{obj.create_by}}</td>
          <td class="text-center" ng-if="obj.state==1">是</td>
          <td class="text-center" ng-if="obj.state==0">否</td>
          <td class="text-center">
            <a class="btn btn-info btn-xs" ng-click="wxqcode(obj.wxchat_qrcode)">生成公众号二维码</a>
            <a class="btn btn-info btn-xs" ng-click="qcode(obj.company_id)">生成二维码</a>
            <a class="btn btn-info btn-xs" ng-click="add(obj.company_id)">编辑</a>
            <a class="btn btn-success btn-xs" ng-show="obj.state=='1'" ng-click="eqstop(obj.id)">失效</a>
            <a class="btn btn-warning btn-xs" ng-show="obj.state=='0'" ng-click="eqstart(obj.id)">生效</a>
            <a class="btn btn-danger btn-xs" ng-click="del(obj.id)">删除</a>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="text-right">
      <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load(1)" previous-text="上一页" next-text="下一页"
        first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
        class="m-t-none m-b">
      </pagination>
    </div>

  </div>
</div>